package main

import (
	"huaweiyunCap/Ske"
	"time"
	"flag"
)
func main() {
	utime := flag.Int("utime",1,"notice time format day")
	intjob := flag.String("job","go","interested job ")
	flag.Parse()
	Ske.InitConfig()
	tt := time.Now().AddDate(0,0,*utime)
	for true {
		nt := time.Now()
		if(tt.Before(nt)){
			Ske.CaptrueIntereJob(*intjob,nil)
			tt = nt.AddDate(0,0,1)
		}
		time.Sleep(60 * time.Second)
	}
}